package com.yunyike.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.mapper.OrderMerchandiseMappingMapper;
import com.yunyike.model.OrderMerchandiseMapping;
import com.yunyike.service.IOrderMerchandiseMappingService;

@Service("orderMerchandiseMappingServiceImpl")
public class OrderMerchandiseMappingServiceImpl implements IOrderMerchandiseMappingService{

	@Autowired
	private OrderMerchandiseMappingMapper orderMerchandiseMappingMapper;
	
	public int insert(OrderMerchandiseMapping ocm) {
		return orderMerchandiseMappingMapper.insertSelective(ocm);
	}

	public List<OrderMerchandiseMapping> findMerchandiseByOrderId(String  orderId){
		// TODO Auto-generated method stub
		return orderMerchandiseMappingMapper.findMerchandiseByOrderId(orderId);
	}

}
